package com.amox.uitest.common;

import java.util.HashMap;
import java.util.Map;

public class InvokeType {

	private final static Map<String, Class> invokeMap = new HashMap<String, Class>();
	
	static {
//		invokeMap.put("", String.class);
		
		invokeMap.put("checkable", boolean.class);
		invokeMap.put("checked", boolean.class);
		invokeMap.put("clickable", boolean.class);
		invokeMap.put("enabled", boolean.class);
		invokeMap.put("focusable", boolean.class);
		invokeMap.put("focused", boolean.class);
		invokeMap.put("ongClickable", boolean.class);
		invokeMap.put("scrollable", boolean.class);
		invokeMap.put("selected", boolean.class);
		
		invokeMap.put("index", int.class);
		invokeMap.put("instance", int.class);
	}
	
	public static Class getType(String method) {
		Class clazz = invokeMap.get(method);
		if(null == clazz) {
			return String.class;
		}
		
		return clazz;
	}
}
